package com.imooc.bilibili.domain.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @author GJH
 * @version V1.0
 * @Package com.imooc.bilibili.domain.annotation
 * @date 2022/3/30 21:19
 * @Copyright © XXXX-XXXX  搬砖工程师
 */
    //注解是在runtime运行阶段
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD}) //可以在方法在注入
@Documented
@Component
public @interface ApiLimitedRole {
    String[] LimitedRoleCodeList() default {};

    String[] limitedRoleCodeList();
}
